package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
	"PaySalary/ModelImplementation"
)

type ChangeMailTransaction struct {
	AbstractTransactions.ChangeMethodTransaction
	itsAddress string
}

func (mt *ChangeMailTransaction) newChangeMailTransaction(empid int, address string) {
	mt.ChangeMethodTransaction.NewChangeMethodTransaction(empid)
	mt.itsAddress = address
}

func (mt *ChangeMailTransaction) GetMethod() Model.PaymentMethod {
	return ModelImplementation.NewMailMethod(mt.itsAddress)
}
